<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, user-scalable=no">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>个人中心</title>
    {include file="common/linkcss" /}
    <link rel="stylesheet" href="__STATIC__/adminxcx/css/app.css">
</head>

<body ontouchstart="">




    <div class="home-hd">
        <div class="home-photo">
            <img src="__UPLOADS__/{$card.image}" alt="">
        </div>
        <h2 class="home-title">{$card.name} {$card.name_en}</h2>
        <p class="home-desc">你可以在这里管理自己的信息 </p>
    </div>

    <div class="home-main">

        <div class="home-nav home-primary">
            <div class="weui-flex">
                <div class="weui-flex__item" id="goMyhome">
                    <h3 class="nav-icon">
                        <img src="__STATIC__/adminxcx/images/home-icon-1.png" class="img-block" alt="">
                    </h3>
                    <p class="nav-text">我的名片</p>
                </div>
                <a href="{:url('card/edit',array('cid'=>$card.id,'gid'=>$card.gid))}" class="weui-flex__item">
                    <h3 class="nav-icon">
                        <img src="__STATIC__/adminxcx/images/home-icon-2.png" class="img-block" alt="">
                    </h3>
                    <p class="nav-text">编辑名片</p>
                </a>
                <a href="{:url('card/getcode',array('cid'=>$card.id,'gid'=>$card.gid))}" class="weui-flex__item">
                    <h3 class="nav-icon">
                        <img src="__STATIC__/adminxcx/images/home-icon-3.png" class="img-block" alt="">
                    </h3>
                    <p class="nav-text">我的海报</p>
                </a>
            </div>
        </div>

        <div class="home-nav home-expand">
            <div class="weui-grids">
                <a href="{:url('log/index',array('cid'=>$card.id))}" class="weui-grid">
                    <h3 class="nav-icon">
                        <img src="__STATIC__/adminxcx/images/home-icon-4.png" class="img-block" alt="">
                    </h3>
                    <p class="nav-text">行为助手</p>
                </a>
                <div class="weui-grid">
                    <h3 class="nav-icon">
                        <img src="__STATIC__/adminxcx/images/home-icon-5.png" class="img-block" alt="">
                    </h3>
                    <p class="nav-text">用户分析</p>
                </div>
                <div class="weui-grid">
                    <h3 class="nav-icon">
                        <img src="__STATIC__/adminxcx/images/home-icon-6.png" class="img-block" alt="">
                    </h3>
                    <p class="nav-text">客户跟进</p>
                </div>
                {if $card.is_foreign}
                <a href="{:url('job/index',array('gid'=>$card.gid))}" class="weui-grid">
                    <h3 class="nav-icon">
                        <img src="__STATIC__/adminxcx/images/home-icon-7.png" class="img-block" alt="">
                    </h3>
                    <p class="nav-text">我的团队</p>
                </a>
                <div class="weui-grid">
                    <h3 class="nav-icon">
                        <img src="__STATIC__/adminxcx/images/home-icon-8.png" class="img-block" alt="">
                    </h3>
                    <p class="nav-text">团队排行</p>
                </div>
                {/if}
                <div class="weui-grid">
                    <h3 class="nav-icon">
                        <img src="__STATIC__/adminxcx/images/home-icon-9.png" class="img-block" alt="">
                    </h3>
                    <p class="nav-text">敬请期待</p>
                </div>
            </div>
        </div>

    </div>


    <script type="text/javascript" src="https://res.wx.qq.com/open/js/jweixin-1.3.2.js"></script>
    <script>
        $('#goMyhome').click(function () {
            wx.miniProgram.navigateTo({
                url: '/pages/my/index?id={$card.id}&type=0'
            });
        })
    </script>

    {include file="common/footer" /}
</body>


</html>